package com.gzy.xuexiziliao.mapper;

import com.gzy.xuexiziliao.pojo.entity.HealthRecords;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface HealthRecordsMapper {

    /**
     * 添加健康记录
     * @param hr
     */
    void save(HealthRecords hr);

    /**
     * 根据id查询健康记录
     * @param id
     * @return
     */
    @Select("select * from health_records where id = #{id}")
    HealthRecords getById(Integer id);

    /**
     * 修改健康记录
     * @param hr
     */
    void update(HealthRecords hr);
}
